
import { defineStore } from 'pinia';

export const useTabsStore = defineStore('tabs', {
	state: () => {
		return { current: 0 };
	},
	// 也可以这样定义
	// state: () => ({ current: 0 })
	actions: {
		increment(value) {
			this.current = value;
		},
	},
});